-- GENERATED SPELL FOR [Wyrmbait] --


function spell0_27843(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27843', 608, 1)
end

function Sorts_27843(pUnit, Event)
local choix_sorts_27843 = math.random(0, 0)
if choix_sorts_27843 == 0 then
pUnit:RegisterEvent('spell0_27843', 1, 1)
end
end

function mob27843_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27843', math.random(1500, 3000), 1)
end

function mob27843_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27843_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27843_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27843, 1, 'mob27843_Action')
RegisterUnitEvent(27843, 2, 'mob27843_Leave')
RegisterUnitEvent(27843, 3, 'mob27843_Kill')
RegisterUnitEvent(27843, 4, 'mob27843_Die')
